<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter()
function onClickLeft() {
    router.back()
}
const day =new Date()
const year = day.getFullYear()
const month = day.getMonth()
const days = day.getDate()
const currentDate = ref([year, month+1, days]);
const minDate= new Date(2020, 0, 1)
const maxDate= new Date(2025, 5, 1)
</script>
<template>
    <div>
        <van-nav-bar title="科室月排班" left-arrow @click-left="onClickLeft" />
        <van-date-picker v-model="currentDate" title="选择日期" :min-date="minDate" :max-date="maxDate" />
    </div>
</template>